package com.example.back.Repository;

import com.example.back.Entity.Cart;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CartRepository extends JpaRepository<Cart,Long> {
    List<Cart> findAllByUserId(long userId, Sort sort);
    List<Cart> findAllByUserId(long userId);
}
